//************************************************
//  *Author：jxx
//  *QQ：283591387
//  *代码由框架生成,任何更改都可能导致被代码生成器覆盖
//  *业务请在q_serve.js中编写
//************************************************
export default function () {
	return {
		editFormFields: { Serve: '', Name: '', Classify: '', Attachment: '', Remark: '' },
		editFormOptions: [
			{ title: 'id', required: true, field: 'Serve', type: 'text', hidden: true },
			{ title: '名称', required: true, field: 'Name', type: 'text' },
			{ key: '服务分类', data: [], title: '分类', required: true, field: 'Classify', type: 'select' },
			{ title: '附件', required: true, field: 'Attachment', type: 'file' },
			{ title: '备注', field: 'Remark', type: 'text', type: 'textarea' }
		],
		searchFormFields: { Name: '', Classify: '', CreateDate: '' },
		searchFormOptions: [
			{ title: '名称', field: 'Name', type: 'like' },
			{ key: '服务分类', data: [], title: '分类', field: 'Classify', type: 'select' },
			{ title: '创建时间', field: 'CreateDate', type: 'datetime' }
		],
		columns: [
			{ field: 'Name', title: '名称', type: 'string', link: true },
			{ field: 'Classify', title: '分类', type: 'string', bind: { key: '服务分类', data: [] } },
			{ field: 'Creator', title: '创建人员', type: 'string' },
			{ field: 'CreateDate', title: '创建时间', type: 'datetime' },
			{ field: 'Attachment', title: '附件', type: 'file' },
			{ field: 'Remark', title: '备注', type: 'string' }
		],
		table: {
			key: 'Serve',
			footer: 'Foots',
			cnName: '服务',
			name: 'q_serve',
			url: '/q_serve/',
			sortName: 'CreateDate'
		}
	};
}
